﻿//using System;
//using System.Net;
//using System.Collections.Generic;
//using System.Collections.ObjectModel;
//using System.Linq;
//using Ivvy_Silverlight.i7SR;
//using System.Data.Services.Client;

///*TO DEFEINE LATER*/
//    public class CalendarItem_Deep{}
//    public class SearchResult{}
//    public class AddressBookItem_Deep{}
///*TO DEFEINE LATER*/
//    public enum Unit
//    {
//        second = 0, minute, hour, day, week, month, year
//    };

//    public class Filter
//    {
//        public Filter() { }

//        public String m_SearchString;
//        public IQueryable<Ivvy_Silverlight.i7SR.Type> m_Type;
//        public add m_AddressBookItem=new AddressBookItem();
//        public Field_Details m_Field_Details;
//        public DateTime? m_Start_Date;
//        public DateTime? m_End_Date;
//        public DateTime? m_Unit;
//        public int? m_Quantity;
//        public Status m_Status;

//        private Field _Field;
//        private AddressBookItem_Address _Address;
//        private AddressBookItem_Contact _Contact;

//        public Field m_Field
//        {
//            set { _Field = value; m_Field_Details.Field = _Field; }
//        }
//        public AddressBookItem_Address m_Address
//        {
//            set { _Address = value; 
//                m_AddressBookItem.AddressBookItem_Address.Add(_Address); }
//        }
//        public AddressBookItem_Contact m_Contact
//        {
//            set { _Contact = value; m_AddressBookItem.AddressBookItem_Contact.Add(_Contact); }
//        }
//    };

//    public class Foundation
//    {
//        public IQueryable<CalendarItem> m_CalendarItem;
//        public IQueryable<CalendarItem_Deep> m_CalendarItem_Deep;
//        public IQueryable<SearchResult> m_SearchResult;
//        public IQueryable<AddressBookItem> m_AddressBookItem;
//        public IQueryable<AddressBookItem_Deep> m_AddressBookItem_Deep;

//        public IQueryable<CalendarItem> GetCalendarItems_Range(Filter _Filter) {return m_CalendarItem;}
//        public IQueryable<CalendarItem> GetCalendarItems_History (Filter _Filter){return m_CalendarItem;}
//        public IQueryable<CalendarItem_Deep> Get_CalendarItems_Range_Deep (Filter  _Filter){return m_CalendarItem_Deep;}
//        public IQueryable<CalendarItem> GetCalendarItems_Filter(Filter  _Filter){return m_CalendarItem;}
//        public IQueryable< CalendarItem_Deep > GetCalendarItems_Filter_Deep (Filter _Filter){return m_CalendarItem_Deep;}
//        public IQueryable<SearchResult> GetCalendarItems_Search(Filter  _Filter){return m_SearchResult;}
//        public IQueryable< AddressBookItem> GetAddressBookItems_Search(Filter _Filter){return m_AddressBookItem;}
//        public IQueryable< AddressBookItem_Deep > GetAddressBookItems_Search_Deep(Filter _Filter){return m_AddressBookItem;}
//       }
//    }

//namespace Ivvy_Silverlight.Ivvy
//{
//    /*TO DEFEINE LATER*/
//    public class CalendarItem_Deep{}
//    public class SearchResult{}
//    public class AddressBookItem_Deep{}
///*TO DEFEINE LATER*/
//    public enum Unit
//    {
//        second = 0, minute, hour, day, week, month, year
//    };

//    public class Filter
//    {
//        public Filter() { }

//        public String m_SearchString;
//        public IQueryable<Type> m_Type;
//        public AddressBookItem m_AddressBookItem=new AddressBookItem();
//        public Field_Details m_Field_Details;
//        public DateTime? m_Start_Date;
//        public DateTime? m_End_Date;
//        public DateTime? m_Unit;
//        public int? m_Quantity;
//        public Status m_Status;

//        private Field _Field;
//        private AddressBookItem_Address _Address;
//        private AddressBookItem_Contact _Contact;

//        public Field m_Field
//        {
//            set { _Field = value; m_Field_Details.Field = _Field; }
//        }
//        public AddressBookItem_Address m_Address
//        {
//            set { _Address = value; 
//                m_AddressBookItem.AddressBookItem_Address.Add(_Address); }
//        }
//        public AddressBookItem_Contact m_Contact
//        {
//            set { _Contact = value; m_AddressBookItem.AddressBookItem_Contact.Add(_Contact); }
//        }
//    };

//    public class Foundation
//    {
//        public IQueryable<CalendarItem> m_CalendarItem;
//        public IQueryable<CalendarItem_Deep> m_CalendarItem_Deep;
//        public IQueryable<SearchResult> m_SearchResult;
//        public IQueryable<AddressBookItem> m_AddressBookItem;
//        public IQueryable<AddressBookItem_Deep> m_AddressBookItem_Deep;

//        public IQueryable<CalendarItem> GetCalendarItems_Range(Filter _Filter) {return m_CalendarItem;}
//        public IQueryable<CalendarItem> GetCalendarItems_History (Filter _Filter){return m_CalendarItem;}
//        public IQueryable<CalendarItem_Deep> Get_CalendarItems_Range_Deep (Filter  _Filter){return m_CalendarItem_Deep;}
//        public IQueryable<CalendarItem> GetCalendarItems_Filter(Filter  _Filter){return m_CalendarItem;}
//        public IQueryable< CalendarItem_Deep > GetCalendarItems_Filter_Deep (Filter _Filter){return m_CalendarItem_Deep;}
//        public IQueryable<SearchResult> GetCalendarItems_Search(Filter  _Filter){return m_SearchResult;}
//        public IQueryable< AddressBookItem> GetAddressBookItems_Search(Filter _Filter){return m_AddressBookItem;}
//        public IQueryable< AddressBookItem_Deep > GetAddressBookItems_Search_Deep(Filter _Filter){return m_AddressBookItem;}
//       }
//    }
//}
